
<?php



$dbhost = "localhost";
$dbuser = "fossilplot";
$dbpass = "fossilplot";
$dbname = "fossilplot";
//Connect to MySQL Server
mysql_connect($dbhost, $dbuser, $dbpass);
//Select Database
mysql_select_db($dbname) or die(mysql_error());

  //$content = $_POST['content'];
  $content=1;
  $result = mysql_query("select * from genus");
  //ob_flush(); flush();

echo "<div id=\"hidelater\"><img src="loading.gif"> Please Wait, loading data...</div>";
ob_flush(); flush();
  
		echo "<select name=\"sel\" multiple size=\"63\">";
  
  switch($content) {
    case 1:
      echo '<br><br><br>';
      
      
      
		
		while ($row = mysql_fetch_array($result)) {
						echo "<option>".$row{'genus_name'}."</option>";

		
		}
		
		
		echo "</select>";
		
      
      
      break;
    
  }
  
  
  
      
  echo "<script>document.getElementById(\"hidelater\").style.display = 'none';</script>";

  
  
?>